﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AuthorityList.aspx.cs"
    Inherits="CURE.SystemManagement.Authority" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>无标题页</title>
    <script type="text/javascript">
        function edit(groupName) {
            var name = document.getElementById("gn").value;
            var url = "SystemManagement/AuthorityManagement.aspx?action=edit&name=" + name + "&info=" + groupName;
            url = encodeURI(url);
            var data = "";
            var callback = "navTabAjaxDone(this)";
            $("#page").loadUrl(url, data, callback);
        }
        $(document).ready(function () {
            var str_action = '<%=getActionStr() %>';
            if (str_action != null && str_action != "") {
                var strs = new Array();
                strs = str_action.split(',');
                for (i = 0; i < strs.length; i++) {
                    $("input:checkbox[value='" + strs[i] + "']").attr('checked', 'true');
                }
            }
        });
    </script>
</head>
<body>
    <div class="pageHeader" style="border: 1px #B8D0D6 solid">
        <div class="searchBar">
            <table class="searchContent">
                <tr>
                    <td>
                        组名称：<input type="text" id="gn" name="gn" value="<%=Groupname %>" maxlength="10" />
                    </td>
                    <td>
                        <input type="button" title="组名称修改" value="组名称修改" onclick="edit('<%=Info %>')" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <form method="post" action="Handler/AuthorityHandler.ashx?action=edit" class="pageForm required-validate"
    onsubmit="return validateCallback(this)">
    <div class="pageContent" style="border-left: 1px #B8D0D6 solid; border-right: 1px #B8D0D6 solid"
        layouth="220">
        <input type="hidden" name="info" value="<%=Info %>" />
        <%=getActionList() %>
    </div>
    <div class="formBar" style="border: 1px #B8D0D6 solid;">
        <label style="float: left">
            <input type="checkbox" class="checkboxCtrl" group="c1" />全选</label>
        <ul>
            <li>
                <div class="button">
                    <div class="buttonContent">
                        <button type="button" class="checkboxCtrl" group="c1" selecttype="invert">
                            反选</button></div>
                </div>
            </li>
            <li>
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="submit" posttype="string" rel="c1" target="selectedTodo">
                            提交</button></div>
                </div>
            </li>
        </ul>
    </div>
    </form>
</body>
</html>
